app.controller('mainSelfCtrl', ['$scope', '$http', function GridSelfController($scope, $http){
	$scope.templateType = 2; // 修改模板类型为：树+列表
	
	$scope.tree.icons_top = [];
	
	// 获取树节点数据
	$http.post('/api/inter/tsOrganizationInfo/ysTree', {}, {params: {}})
	.success(function (response) {
		$scope.tree.data = response.data;
	});
	
	/*
	 * 树节点点击事件
	 */
	$scope.tree.nodeClick = function(item) {
		$scope.changeExtraCond({'nodeId': item.id});
		$scope.loadPage(1);
	}
}]);